<template>
  <div class="box">
    <Digui v-if="num > 0" :num="num - 1" />
    {{ num }}
  </div>
</template>

<script>
export default {
  name: "Digui",
  props: ["num"],
};
</script>

<style lang="less" scoped>
.box {
  margin: 1/360 * 100vw;
  padding: 1/360 * 100vw;
  border: 1px solid pink;
}
</style>